//
//  XYJXCResultHeaderView.m
//  徙游记-01
//
//  Created by hcios on 2017/7/12.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJXCResultHeaderView.h"

@implementation XYJXCResultHeaderView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupSubViews];
    }
    return self;
}

-(void)setupSubViews{

    
    _backImgView = [[UIImageView alloc] initWithFrame:self.bounds];
    [self addSubview:_backImgView];
    
    
    _nameLab = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height - 50, self.frame.size.width, 20)];
    [_nameLab setTextColor:[UIColor whiteColor]];
    [_nameLab setFont:[UIFont fontWithName:FONT_NAME_LTH size:13]];
    _nameLab.textAlignment = NSTextAlignmentLeft;
    _nameLab.numberOfLines = 0;
    _nameLab.shadowColor = [UIColor grayColor];
    _nameLab.shadowOffset = CGSizeMake(1, 1);
    [_backImgView addSubview:_nameLab];
    
    
    _dayLab = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(_nameLab.frame), self.frame.size.width, 20)];
    [_dayLab setTextColor:[UIColor whiteColor]];
    [_dayLab setFont:[UIFont fontWithName:FONT_NAME_LTH size:13]];
    _dayLab.textAlignment = NSTextAlignmentLeft;
    _dayLab.shadowColor = [UIColor grayColor];
    _dayLab.shadowOffset = CGSizeMake(1, 1);
    [_backImgView addSubview:_dayLab];
    
    
}



@end
